<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>

<jsFileName><!--js/pageJS/page_meeting.js;js/My97DatePicker/WdatePicker.js--></jsFileName>
<s:form id="query_meeting_list_form" name="query_meeting_list_form" method="post" action="meeting/list.do">
<div  class="con_wrap_padding">
	<div class="trans_operate_box clearfix">
		<div class="operate_btns">			
		</div>
		<div class="trans_type_search">
			标题：<s:textfield name="zt" size="10"/>
			会议日期：<s:textfield name="hyrqBegin" size="10" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true"/>
	    	会议室：<mytag:select title="请输入类别" name="mrid" sql="basedata" isSql="false" condition="16" dataType="Long" listKey="id" listValue="name" headerKey="" headerValue="请选择"/>
	    	<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="搜索" onclick="QueryMeetingListUtils.query()">搜索</a>
		</div>   
	</div>
	<table id="dataGridTable_meeting" width="98%" class="dhtmlxGrid" imgpath="skins/default/images/dhtmlx/" lightnavigation="true" style="table-layout:fixed">
		<tr>
			<td align="center">主题</td>
			<td align="center">会议日期</td>
			<td align="center">会议时间</td>
			<td align="center">会议室</td>
			<td align="center">预定人</td>
			<td align="center">参与人</td>
			<td align="center" width="15%">操作</td>
		</tr>
		<c:forEach items="${page.result}" var="item" varStatus="status">
		<tr>
			<td align="left">${item.zt}</td>
			<td align="left"><c:out value='${item.hyrqString}'/>&nbsp;</td>
			<td align="left">${item.dataname}</td>
			<td align="left">${item.strtime}</td>
			<td align="left">${item.username}</td>
			<td align="left">
			<c:forEach items="${item.meetingUsers}" var="item2" varStatus="status2">
			${item2.username},
			</c:forEach>
			</td>
			<td align="center">
				
				<a href="#" onclick="Ext.milan.pagejs.page_meeting.viewDetail('${item.id}')"><img src="skins/default/images/icons/ico-view.gif" />查看</a>&nbsp;
				<%-- 
				<a href="#" onclick="Ext.milan.pagejs.page_meeting.showEditForm('${item.id}')"><img src="skins/default/images/icons/ico-edit.gif" />编辑</a>&nbsp;
				--%>
				<a href="#" onclick="Ext.milan.pagejs.page_meeting.deleteForm('${item.id}')"><img src="skins/default/images/icons/ico-delete.gif" />删除</a>&nbsp;
			</td>
			
		</tr>
		</c:forEach>
		
		<c:if test="${fn:length(page.result)==0}">
		<tr>
	    	<td colspan="7"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
	    </tr>
	    </c:if>
	</table>
	<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
	<input type="hidden" name="pageSize" value="${page.pageSize}"/>
	<simpletable:pagingToolbar page="${page}"/>
 	</div>
</s:form>
<script type="text/javascript">;
	QueryMeetingListUtils = {};
	
	/**
	 * 条件查询
	 */
	QueryMeetingListUtils.query = function() {
		//强行设置当前页为第一页
		var currentPage = $("query_meeting_list_form").pageNo;
		if(currentPage) 
			currentPage.value = 1;
		
		Ext.milan.pagejs.page_meeting.query();
	};
	
</script>